<template>
  <div>
    <el-dialog
      title="详情"
      :visible.sync="dialogTableVisible"
      @close="$emit('update:show', false)"
      width="30%"
      :show="show"
      center
    >
      <div class="styleShow">提现明细</div>
      <el-table :data="gridData" align="center">
        <el-table-column
          align="center"
          property="date"
          label="提现时间"
          width="200"
        >
        <template v-slot="{ row }">
          {{ row.withdrawTime }}
        </template>
        </el-table-column>
        <el-table-column
          align="center"
          property="name"
          label="提现金额"
          width="150"
        >
        <template v-slot="{ row }">
          {{ row.withdrawMoney }}元
        </template>
        </el-table-column>
      </el-table>
    </el-dialog>
  </div>
</template>

<script>
export default {
  name: 'chooseBounced',
  props: {
    show: {
      type: Boolean,
      default: false
    },
    gridData: {
      type: Array,
      required: true
    }
  },
  data() {
    return {
      dialogTableVisible: this.show
    }
  },
  methods: {},
  watch: {
    show() {
      this.dialogTableVisible = this.show
    }
  }
}
</script>

<style lang="less" scoped>
:deep(.el-dialog .dialog-footer) {
  display: flex;
  justify-content: space-between;
}
.styleShow {
  text-align: center;
  font-size: 22px;
  margin-bottom: 20px;
}
</style>
